package com.lyf.scm.plan.insfrastructure.db.mapper;


import com.lyf.scm.plan.insfrastructure.db.dataobject.SalesPlanOtherAccuracyDO;
import com.lyf.scm.plan.insfrastructure.db.dataobject.SalesPlanSelectDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * description:
 * 其他渠道计划_目标与销售计划准确率（scm_sales_plan_other_accuracy）数据库访问层
 *
 * @author: huangtao
 * @data: 2020/7/31
 */
public interface SalesPlanOtherAccuracyMapper {


    /**
     * 根据分页后的参数查询其他渠道计划_目标与销售计划准确率
     * @param salesPlanSelect
     * @return
     */
    List<SalesPlanOtherAccuracyDO> listWeekBySelective(SalesPlanSelectDO salesPlanSelect);
    /**
     * 查询指标
     *
     * @param salesPlanOtherAccuracyDO
     * @return {@link List<SalesPlanOtherAccuracyDO>}
     */
    List<SalesPlanOtherAccuracyDO> listSalesAndTarget(SalesPlanOtherAccuracyDO salesPlanOtherAccuracyDO);

    /**
     * 按条件查询其他渠道计划准确率
     * @param salesPlanSelect
     * @return
     */
    List<SalesPlanOtherAccuracyDO> listAllByCycles(SalesPlanSelectDO salesPlanSelect);
    /**
     * 根据搜索条件查询出所有的数据
     *
     * @param dtoToDO
     * @return {@link List<SalesPlanOtherAccuracyDO>}
     */
    List<SalesPlanOtherAccuracyDO> listAllByCondition(SalesPlanSelectDO dtoToDO);

    /**
     * 删除对应标识的数据
     *
     * @param opSign
     */
    void delete(@Param("opSign") String opSign);
    void deleteByOpSign(String opSign);
}
